package com.firstjianmo.fragmenttest;

import android.app.Fragment;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

/**
 * Created by pc on 2016/12/3.
 */

public class AnotherRightFragment extends Fragment {

    private String receiveMsg;

    public AnotherRightFragment(String receiveMsg) {
        this.receiveMsg = receiveMsg;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.another_right_fragment, container, false);
        TextView receiveTextView = (TextView) view.findViewById(R.id.receive_msg);
        receiveTextView.setText(receiveMsg);
        return view;
    }
}
